#pyev1
# normal command
$speak "MU" "I am a custom named character."
# eval
mu_name = game.get_unit("MU").name
$speak "Seth" ("Princess %s!" % mu_name)
# variable
$speak "MU" ("You've rescued me %d times" % v("TimesRescued"))
# if/else/processing
if v("TimesRescued") == 9:
    $speak "MU" "We should do this more often."
elif v("TimesRescued") > 9:
    $speak 'MU' "A bit ridiculous isn't it?"
else:
    $speak 'MU' "Too few!"

# for
for unit_nid in ['Eirika', 'Seth']:
    $speak unit_nid ("My name is %s" % unit_nid)

while v("TimesToRepeat") > 0:
    $speak 'MU' "I am speaking in a while loop"
    $inc_level_var 'TimesToRepeat' -1